package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 技术指标（年k，月k，周k）对象 technical_index
 * 
 * @author ruoyi
 * @date 2024-03-20
 */
public class TechnicalIndex extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** K线图名称 */
    @Excel(name = "K线图名称")
    private Long klineId;

    /** 类型（年，1；月，2；周，3） */
    @Excel(name = "类型", readConverterExp = "年=，1；月，2；周，3")
    private Integer klineType;

    /** 年份 */
    @Excel(name = "年份")
    private Long klineYear;

    /** 月份 */
    @Excel(name = "月份")
    private Long klineMonth;

    /** 第几周 */
    @Excel(name = "第几周")
    private Long klineWeek;

    /** 开盘价 */
    @Excel(name = "开盘价")
    private BigDecimal startPrice;

    /** 最高价 */
    @Excel(name = "最高价")
    private BigDecimal maxPrice;

    /** 最低价 */
    @Excel(name = "最低价")
    private BigDecimal minPrice;

    /** 收盘价 */
    @Excel(name = "收盘价")
    private BigDecimal endPrice;

    /** 成交量 */
    @Excel(name = "成交量")
    private Long turnover;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setKlineId(Long klineId) 
    {
        this.klineId = klineId;
    }

    public Long getKlineId() 
    {
        return klineId;
    }
    public void setKlineType(Integer klineType) 
    {
        this.klineType = klineType;
    }

    public Integer getKlineType() 
    {
        return klineType;
    }
    public void setKlineYear(Long klineYear) 
    {
        this.klineYear = klineYear;
    }

    public Long getKlineYear() 
    {
        return klineYear;
    }
    public void setKlineMonth(Long klineMonth) 
    {
        this.klineMonth = klineMonth;
    }

    public Long getKlineMonth() 
    {
        return klineMonth;
    }
    public void setKlineWeek(Long klineWeek) 
    {
        this.klineWeek = klineWeek;
    }

    public Long getKlineWeek() 
    {
        return klineWeek;
    }
    public void setStartPrice(BigDecimal startPrice) 
    {
        this.startPrice = startPrice;
    }

    public BigDecimal getStartPrice() 
    {
        return startPrice;
    }
    public void setMaxPrice(BigDecimal maxPrice) 
    {
        this.maxPrice = maxPrice;
    }

    public BigDecimal getMaxPrice() 
    {
        return maxPrice;
    }
    public void setMinPrice(BigDecimal minPrice) 
    {
        this.minPrice = minPrice;
    }

    public BigDecimal getMinPrice() 
    {
        return minPrice;
    }
    public void setEndPrice(BigDecimal endPrice) 
    {
        this.endPrice = endPrice;
    }

    public BigDecimal getEndPrice() 
    {
        return endPrice;
    }
    public void setTurnover(Long turnover) 
    {
        this.turnover = turnover;
    }

    public Long getTurnover() 
    {
        return turnover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("klineId", getKlineId())
            .append("klineType", getKlineType())
            .append("klineYear", getKlineYear())
            .append("klineMonth", getKlineMonth())
            .append("klineWeek", getKlineWeek())
            .append("startPrice", getStartPrice())
            .append("maxPrice", getMaxPrice())
            .append("minPrice", getMinPrice())
            .append("endPrice", getEndPrice())
            .append("turnover", getTurnover())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
